package com.db.patterns.decorator;

public class Decoration implements Car {

    private Car car;

    public Decoration(Car car) {
        this.car = car;
    }

    @Override
    public void run() {
        //委派给构件
        car.run();
    }
}
